﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Inventory.DAL;

namespace Inventory.Test
{
    [TestClass()]
    public class IssueToCcTest
    {
        /// <summary>
        ///A test for GetById
        ///</summary>
        [TestMethod()]
        public void InsertTest()
        {
            //var entities = new InventoryEntities();

            //var master = new IssuetoCC();
            //master.Code = "UnitTest 0001";
            //master.RequestDate = DateTime.Now; 
            //master.CreationDate = DateTime.Now;
            //master.IssueStatus = entities.IssueStatus.Where(i => i.ID == 1).First();
            //master.ManualNumber = "UnitTest 0001";
            //master.MaterialRequestCode = "UnitTest 0001";
            //master.Title = "UnitTest 0001";
            //master.Warehouse = entities.Warehouse.Where(i => i.ProjectID == 91).First();// TODO: remove the 91 and get it dynamically from other unit test

            //var material1 = new IssuetoCCMaterial();
            //material1.CostCenterID = 135;
            //material1.
            //Assert.IsNotNull(result);
            //Assert.AreNotEqual(0, result.Items.Count);
        }
    }
}
